using GatewayServerService.CloudCenter;
using GatewayServerService.Data;
using GatewayServerService.Mq;
using Models.Constant;
using System.Runtime.InteropServices;
using UtilsBase;
using UtilsCache;



namespace GatewayServer
{
    public class GatewayServerThreadRun
    {

        public void Run()
        {

            Thread thread_MqttClientStart = new Thread(new ServiceMQTT_Client_Helper().start);
            thread_MqttClientStart.Start();


            Thread thread_ServiceTaskPlain = new Thread(new ServiceCloudTaskPlain().taskRun);
            thread_ServiceTaskPlain.Name = "thread_ServiceTaskPlain";
            thread_ServiceTaskPlain.Start();


            Thread getTaskPlianTask = new Thread(new ServiceCloudTaskTime().taskRun);
            getTaskPlianTask.Name = "getTaskPlianTask";
            getTaskPlianTask.Start();

            Thread Condition = new Thread(new ServiceCloudLinkageCondition().taskRun);
            Condition.Name = "Condition";
            Condition.Start();

        }
    }
}